package vn.edu.saigontech.ncms.model.system;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import vn.edu.saigontech.ncms.model.BaseEntity;

@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "discount_type", discriminatorType = DiscriminatorType.STRING)
@Table(name = "ncms_receipt_discount_item")
@SuppressWarnings("serial")
public abstract class ReceiptAbstractDiscountItem extends BaseEntity {

	@Column(name = "name")
	protected String name;
	
	@Column(name = "notation")
	protected String receiptNotation;

	@Column(name = "active")
	protected boolean active;

	@Column(name = "sequence")
	protected int order;

	public abstract String getDescription();

	public abstract String getValueDescription();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public String getReceiptNotation() {
		return receiptNotation;
	}

	public void setReceiptNotation(String receiptNotation) {
		this.receiptNotation = receiptNotation;
	}
}